package com.zdp.io.nio.test1;

/**
 * @author ZhengDp
 * @Date 2024/2/26 23:34
 */
public class TimeServer {
    public static void main(String[] args) {
        int port = 8080;
        if (args != null && args.length >0) {
            try {
                port = Integer.valueOf(args[0]);
            } catch (Exception e) {
                port = 8080;
            }
        }
        MultiplexerTimeServer timeServer = new MultiplexerTimeServer(port);

        new Thread(timeServer, "NIO-MultiplexerTimeServer-001").start();

    }
}
